addTrailingSlashIfNeeded

Add a slash at the end of a String only if it is missing.

Return

the given string with a trailing slash.